package map.utils.json;

import java.lang.reflect.Type;

import map.beans.EmpMapVersionBean;
import map.beans.GeneralConfigBean;
import map.beans.MapEngineRegistrationBean;
import map.beans.MapToolConfigBean;
import map.beans.WmsServerBean;

import com.google.gson.InstanceCreator;

public class InstanceCreators {
	public static class VersionInstanceCreator implements InstanceCreator<EmpMapVersionBean> {
		@Override
		public EmpMapVersionBean createInstance(Type type) {
			return new EmpMapVersionBean();
		}	
	}

	public static class MapToolInstanceCreator implements InstanceCreator<MapToolConfigBean> {
		@Override
		public MapToolConfigBean createInstance(Type type) {
			return new MapToolConfigBean();
		}	
	}

	public static class WmsServerInstanceCreator implements InstanceCreator<WmsServerBean> {
		@Override
		public WmsServerBean createInstance(Type type) {
			return new WmsServerBean();
		}	
	}

	public static class MapEngineInstanceCreator implements InstanceCreator<MapEngineRegistrationBean> {
		@Override
		public MapEngineRegistrationBean createInstance(Type type) {
			return new MapEngineRegistrationBean();
		}	
	}

	public static class GeneralConfigInstanceCreator implements InstanceCreator<GeneralConfigBean> {
		@Override
		public GeneralConfigBean createInstance(Type type) {
			return new GeneralConfigBean();
		}	
	}

}
